package com.burgeon.backend.SHOPBACKEND.service.Impl;

import com.burgeon.backend.SHOPBACKEND.service.AKdQueryService;
import com.burgeon.backend.Util.KdniaoTrackQueryAPI;
import org.springframework.stereotype.Service;

@Service
public class AKdQueryServiceImpl implements AKdQueryService {

    public String queryKd(String expCode, String expNo,String phone){
        //查询快递公司
        KdniaoTrackQueryAPI api = new KdniaoTrackQueryAPI();
        try {
            String r = api.getOrderTracesByJson(expCode,expNo,phone);
            System.err.println(r);
            return r;
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }

}
